﻿using System;

public  class AdminRegBO
    {
      private string _userName ;
	  private string _password;
	  private string _name;
      private string _role;
    
        public string Role
        {
            get { return _role; }
            set { _role = value; }
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public string Password
        {
            get { return _password; }
            set { _password = value; }
        }

        public string UserName
        {
            get { return _userName; }
            set { _userName = value; }
        }

	   AdminRegDAL _AdminRegDAL = new AdminRegDAL();

	   public int InsertRegistration()
		   {

		   try
			   {

			   return _AdminRegDAL.CreateAccount(this);



			   }
		   catch (Exception ex)
			   {
			   throw ex;


			   }
		   finally
			   {

			   _AdminRegDAL = null;

			   }
		   }
    }

